package com.york.service;

import com.york.dao.UserDao;
import com.york.dao.UserDaoImpl;
import com.york.dao.UserDaoMySqlImpl;

public class UserServiceImpl implements UserService {
    private UserDao userDao = new UserDaoMySqlImpl();

    // 利用set实现
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }


    @Override
    public void getUser() {
        userDao.getUser();
    }
}
